package com.bwie.sixth.house.controller;

import com.bwie.sixth.house.config.OSSFileUtil;
import com.bwie.sixth.house.service.EsPageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("house/es")
public class EspageController {

    @Autowired
    private EsPageService esPageService;

    @RequestMapping("/upload")
    public String upload(MultipartFile file) throws Throwable {
        String s = OSSFileUtil.uploadFile(file);
        return s;
    }

}
